package com.sk.z.khk.tdd;

import org.junit.Test;

import com.sk.z.khk.tdd.Movie;

import static org.junit.Assert.*;
import static org.hamcrest.core.Is.*;

public class MovieTest {
	@Test
	public void getAverageRate() {
		Movie starWars = new Movie("Star Wars");
		starWars.addRating(3);
		starWars.addRating(5);
		assertThat(starWars.getAverageRate(), is(4d));
	}
}
